﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true" CodeBehind="setIndexads.aspx.cs" Inherits="ZF.WS.Admin.ads.setIndexads" %>

 <%@ Register src="/UserControls/SWFUpLoad.ascx" tagname="SWFUpLoad" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="tac_">
<iframe src="adstemplate.aspx?key=<%=Key %>#<%=Key %>" style="width:970px; height:300px"></iframe>
</div>
 
    <div class="editContainer" style="min-width: 1200px; *width: 1200px">
        <table class=" w100_ edit edit1   ">
            <tbody>
                <tr>
                    <th colspan="4">
                        <div class="c">
                           页面广告管理
                        </div>
                    </th>
                </tr>
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"> </span>Url：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbUrl"   class="lltxt"></zf:TextBox>
                            <span class="zx_" id="tbNameTip"></span>
                        </div>
                    </td>
                </tr>
                
               <%-- <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"> </span>图片：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbImage"   class="lltxt"></zf:TextBox>
                            <span class="zx_" id="Span3"></span>
                        </div>
                    </td>
                </tr>--%>
                
                
                
                <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"> </span>脚本：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbJavascript"   class="lltxt"></zf:TextBox>
                            <span class="zx_" id="Span11"></span>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td class="ll">
                        <div class="c">
                            <span class="xh_"> </span>样式：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <zf:TextBox runat="server" ID="tbStyle"   class="lltxt"></zf:TextBox>
                            <span class="zx_" id="Span12"></span>
                        </div>
                    </td>
                </tr>
    
                
                
                 
  
                <tr>
                    <td class="ll">
                        <div class="c vam_">
                            <span class="xh_"></span>图片上传：
                        </div>
                    </td>
                    <td class="lr" colspan="3">
                        <div class="c">
                            <uc1:swfupload id="SWFUpLoad1" runat="server" uploadurl="/uploadfile.aspx?type=ads"
                                filelimit="1" maxsize="500" filetype="*.gif;*.jpg" />
                            <zf:PlaceHolder ID="PlaceHolder1" runat="server"  >
                                <zf:TextBox runat="server" ID="tbPhoto" class="dn_"></zf:TextBox>
                                <style>
                                    .ulimg li {  width: 100px; margin-right: 10px; text-align: center; }
                                    .ulimg li img {  }
                                </style>
                                <div class="ulimg">
                                    <zf:ListView runat="server" ID="lvImgList">
                                        <LayoutTemplate>
                                            <ul>
                                                <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                                                </zf:PlaceHolder>
                                            </ul>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <li>
                                                <img src="/photo/ads/<%#Eval("File") %>" />
                                                <input type="button" onclick="DelPhoto(this,'<%#Eval("File") %>')" value="删除图片" />
                                            </li>
                                        </ItemTemplate>
                                    </zf:ListView>
                                </div>

                                <script>

                                    function DelPhoto(obj, file) {
                                        var result = $(".tbPhoto").val().replace(file, "");
                                        $(".tbPhoto").val(result);
                                        $(obj.parentNode).remove();
                                    }
                                </script>

                            </zf:PlaceHolder>
                        </div>
                    </td>
                </tr>
         
        </tbody>
            <tbody>
                <tr class="b">
                    <td colspan="4">
                        <div>
                            
                             <zf:Button ID="btAdd2"     class="linkbtn addSubmit" runat="server"  CommandArgument="Fail"
                                OnClick="EditSubmit" Text=" 修改 "></zf:Button>
                             
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
 
</asp:Content>
